<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>hello vue</title>
</head>

<body>
    <div id="app">
        <!-- 错误的做法：这里不可以使用mustache语法 -->
        <!-- <img src="{{imgURL}}" alt=""> -->
        <!-- 正确的做法：使用v-bind指令 -->
        <img v-bind:src="imgURL" alt="">
        <a v-bind:href="aHref">百度一下</a>
        <!-- 语法糖的写法 -->
        <br>
        <img :src="imgURL" alt="">
        <a :href="aHref">百度一下</a>
    </div>
    <script src="../js/vue.js"></script>
    <script>
        
        const app = new Vue({
            el: '#app',    
            data: {    
                message: '你好啊',
                imgURL: 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3427651430,747031083&fm=26&gp=0.jpg',
                aHref: 'http:www.baidu.com'
            }
        })
    </script>
</body>
</html>